#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
//#include <QtOpenGL/qgl.h>
#include <QtOpenGL>
#include <QKeyEvent>

class GLWidget : public QGLWidget
{
    Q_OBJECT

public:
    GLWidget(QWidget *parent = 0, bool fs = false);
    ~GLWidget();

protected:
  void initializeGL();
  void paintGL();
  void resizeGL( int width, int height );

  void keyPressEvent( QKeyEvent *e );

private:
  bool fullscreen;
  GLfloat triangleRotate;
  GLfloat quadsRotate;
  GLfloat circleRotate;
};

#endif // WIDGET_H
